home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3989 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!willen.demon.co.uk
  2. From: Adrian Parker <adrian@willen.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: finding a bug.. any suggestions ?
  5. Date: Thu, 01 Feb 96 09:24:02 GMT
  6. Organization: Quondam Ltd
  7. Message-ID: <823166642snz@willen.demon.co.uk>
  8. Reply-To: adrian@willen.demon.co.uk
  9. X-NNTP-Posting-Host: willen.demon.co.uk
  10. X-Newsreader: Demon Internet Simple News v1.30
  11. X-Mail2News-Path: willen.demon.co.uk
  12.  
  13.  
  14. Using Watcom 10.0a..  
  15. Creating a win3x DLL incorporating Watcom ODBC (wsql40 patch to level C)
  16. Calling the DLL from PowerBuilder 4.0
  17.  
  18. What happens is that in the first call to the DLL to perform an operation
  19. the whole thing works fine.  But the second time, doing exactly the same
  20. operation it GPFs in an apparently innocuous place.  Also, when I quit
  21. windows after the GPF, it hangs.  So I'm assuming some part of windows
  22. is being corrupted too.
  23.  
  24. I've checked everything I can think of..  
  25.     all the malloc/free statements balance.
  26.     all the variables I assign data to with strcpy etc are large eough.
  27.     all the pointers I use are correctly set up.
  28.  
  29. The only thing I can think of that might catch this bug is some kind of
  30. memory leak detector.. anyone have any suggestions as to what I could use ?
  31.  
  32. Hopefully,
  33. Adrian
  34. -- 
  35. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
  36. :: Adrian Parker  adrian@willen.demon.co.uk  Quondam Ltd ::
  37. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
  38.